package com.wlz.controller;

import com.wlz.service.IFakeDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.text.ParseException;

@RestController
@RequestMapping("/fakedata")
public class FakeDataController {

    @Autowired
    IFakeDataService iFakeDataService;

    @RequestMapping("/test")
    @ResponseBody
    public void test(){
        try {
            iFakeDataService.test();
        } catch (ParseException e) {
            e.printStackTrace();
        }
    }
    @RequestMapping("/person")
    @ResponseBody
    public void addPerson(){
        iFakeDataService.addPerson();
    }
    @RequestMapping("/company")
    @ResponseBody
    public void addCompany(){
        iFakeDataService.addCompany();
    }
    @RequestMapping("/wz")
    @ResponseBody
    public void addWz(){
        iFakeDataService.addWz();
    }
    @RequestMapping("/home")
    @ResponseBody
    public void addHome(){
        iFakeDataService.addHome();
    }
    @RequestMapping("/school")
    @ResponseBody
    public void addSchool(){
        iFakeDataService.addSchool();
    }
    @RequestMapping("/family")
    @ResponseBody
    public void addFamily(){
        iFakeDataService.addFamily();
    }





    @RequestMapping("/jygj")
    @ResponseBody
    public void addJygj(){
        iFakeDataService.addJygj();
    }
    @RequestMapping("/employee")
    @ResponseBody
    public void addEmployee(){
        iFakeDataService.addEmployee();
    }
    @RequestMapping("/wzgx")
    @ResponseBody
    public void addWzgx(){
        iFakeDataService.addWzgx();
    }
    @RequestMapping("/jx")
    @ResponseBody
    public void addJx(){
        iFakeDataService.addJx();
    }
    @RequestMapping("/xxll")
    @ResponseBody
    public void addXxll(){
        iFakeDataService.addXxll();
    }
    @RequestMapping("/jrgx")
    @ResponseBody
    public void addJrgx(){
        iFakeDataService.addJrgx();
    }
    @RequestMapping("/ywgx")
    @ResponseBody
    public void addYwgx(){
        iFakeDataService.addYwgx();
    }
}
